﻿using IceCS.AsposeProd.Core.Services;
using System;
using System.IO;

namespace IceCS.AsposeProd.Cmd
{
    class Program
    {
        static void Main(string[] args)
        {
            ConvertWord1();
            ConvertPdf1();
        }

        static void ConvertWord1()
        {
            var docConvertService = new DocConvertService();
            var srcFilePath = Path.Combine(AppContext.BaseDirectory, "test-files", "little-prince.docx");
            docConvertService.ConvertWordToHtml1("小王子.docx", File.OpenRead(srcFilePath));
        }

        static void ConvertPdf1()
        {
            var docConvertService = new DocConvertService();
            var srcFilePath = Path.Combine(AppContext.BaseDirectory, "test-files", "little-prince.pdf");
            docConvertService.ConvertPdfToHtml1("小王子.pdf", File.OpenRead(srcFilePath));
        }
    }
}
